## Script (Python) "prefs_sdotNews_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=Configure sdotNews
##
                                                                                                        
REQUEST = context.REQUEST
from Products.CMFCore.utils import getToolByName
                                                                                                        
# default message and redirection
portal_msg = 'sdotnews configuration updated.'
action = 'redirect_to:string:prefs_sdotNews_form'
status = 'success'
                                                                                                        
pp = getToolByName(context, 'portal_properties')
props = pp.sdotNews_properties
                                                                                                        
props.editProperties(REQUEST)
props.manage_changeProperties(REQUEST)
props.manage_changeProperties(REQUEST)
                                                                                                        
state.setNextAction(action)
                                                                                                        
return state.set(status=status, portal_status_message=portal_msg)
